package ee.metadataUtils.impl;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class ParameterizedTypeImpl implements ParameterizedType {

	private Type _rawType;
	private Type[] _typeArguments;

	public ParameterizedTypeImpl(Type rawType, Type... typeArguments) {

		_rawType = rawType;
		_typeArguments = typeArguments.clone();
	}

	@Override
	public Type[] getActualTypeArguments() {
		return _typeArguments;
	}

	@Override
	public Type getRawType() {
		return _rawType;
	}

	@Override
	public Type getOwnerType() {
		return null;
	}
}
